﻿//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;

namespace EntLibContrib.Resource.Configuration
{
	/// <summary>
	/// Base class for configuration data defining a ResourceManagerDataBase. Defines the information needed to properly configure
	/// an IResourceManager instance.
	/// </summary>    	
	[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "DataBase")]
	[Assembler(typeof(TypeInstantiationAssembler<IResourceManager, ResourceManagerDataBase>))]
	public class ResourceManagerDataBase : NameTypeConfigurationElement
	{
		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="ResourceManagerDataBase"/> class.
		/// </summary>
		public ResourceManagerDataBase()
		{
		}

		/// <summary>
		/// Initialize a new instance of the <see cref="ResourceManagerDataBase"/> class.
		/// </summary>
		/// <param name="name">The name of the <see cref="ResourceManagerDataBase"/>.</param>
		/// <param name="type">The type of <see cref="IResourceManager"/>.</param>
		public ResourceManagerDataBase(string name, Type type)
			: base(name, type)
		{
		}
		#endregion
	}
}
